@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400..700&display=swap');

:root {
    --ebsrv7-dark: #000000;
    --ebsrv7-white: #ffffff;
    --ebsrv7-primary: #01579B;
    --ebsrv7-secondary: #FF305B;
    --ebsrv7-border: #ff305910;

    --ebsrv7-container-width: 1440px;

    --ebsrv7-space-xs: .4rem;
    --ebsrv7-space-sm: .8rem;
    --ebsrv7-space-md: 1.2rem;
    --ebsrv7-space-lg: 2rem;
    --ebsrv7-space-xl: 3rem;

    --ebsrv7-fs-sm: .85rem;
    --ebsrv7-fs-base: 1rem;
    --ebsrv7-fs-md: 1.1rem;
    --ebsrv7-fs-lg: 1.125rem;
    --ebsrv7-fs-xl: 1.6rem;
    --ebsrv7-fs-2xl: 1.25rem;

    --ebsrv7-transition: .35s cubic-bezier(.4, 0, .2, 1);

    --ebsrv7-title-clamp: clamp(1.2rem, 4vw, var(--ebsrv7-fs-xl));
    --ebsrv7-desc-clamp: clamp(var(--ebsrv7-fs-sm), 2.5vw, var(--ebsrv7-fs-base));
}

body {
    font-family: "Cairo", sans-srvif;
    /* direction: rtl; */
}

a {
    text-decoration: none;
    color: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ebsrv7-services-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--ebsrv7-space-md);
}

.ebsrv7-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--ebsrv7-space-sm);
}

.ebsrv7-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: bold;
    color: var(--ebsrv7-secondary);
}

.ebsrv7-title-highlight {
    color: var(--ebsrv7-primary);
}

.ebsrv7-underline {
    width: 80px;
    height: 2px;
    background-color: var(--ebsrv7-dark);
    position: relative;
}

.ebsrv7-services-section {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--ebsrv7-space-lg);
    width: 100%;
    max-width: var(--ebsrv7-container-width);
    margin: 0 auto;
    padding: 0 var(--ebsrv7-space-md);
}

.ebsrv7-card {
    display: flex;
    flex-direction: column;
    gap: var(--ebsrv7-space-sm);
    background-color: var(--ebsrv7-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--ebsrv7-space-sm);
    padding: var(--ebsrv7-space-sm);
    transition: box-shadow var(--ebsrv7-transition), transform var(--ebsrv7-transition);
    cursor: pointer;
}

.ebsrv7-card:active {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.ebsrv7-icon-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    background-color: var(--ebsrv7-secondary);
    border: 1px solid var(--ebsrv7-border);
    border-radius: var(--ebsrv7-space-sm);
}

.ebsrv7-icon {
    color: var(--ebsrv7-primary);
    font-size: var(--ebsrv7-fs-2xl);
}

.ebsrv7-content {
    display: flex;
    flex-direction: column;
    gap: var(--ebsrv7-space-sm);
}

.ebsrv7-title {
    color: var(--ebsrv7-primary);
    font-size: var(--ebsrv7-title-clamp);
    font-weight: 700;
    font-family: "Playfair Display", Georgia, serif;
}

/* الوصف */
.ebsrv7-desc {
    color: var(--ebsrv7-dark);
    font-size: var(--ebsrv7-desc-clamp);
    font-weight: 400;
    line-height: 1.6;
}

/* استعلامات الوسائط (Media Queries) للشاشات الأكبر (التابلت والديسكتوب) */
@media (min-width: 768px) {
    .ebsrv7-services-section {
        flex-direction: row;
        justify-content: center;
    }

    .ebsrv7-card {
        flex: 1;
        max-width: 500px;
    }

}